/*
package NiuKe;

import java.util.Scanner;

*/
/**
 * @Description:
 * @Author: Hanzao
 * @Date: 2022/06/14/9:44
 *//*

public class HJ40 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        int num1 = 0; //英文字符
        int num2=0; //空格字符
        int num3=0; //数字字符
        int num4=0; //其他字符
        Character c = ' ';
        for(int i=0;i<s.length();i++){
            c = s.charAt(i);
            if(c>='a'&&c<='z'||c>='A'&&c<='Z'){
                num1++;
            }else if(c>='0'&&c<='9'){
                num3++;
            }else if(c == ' '){
                num2++;
            }else{
                num4++;
            }
        }
        System.out.println(num1);
        System.out.println(num2);
        System.out.println(num3);
        System.out.println(num4);
    }
}
*/
